package com.jx.gocomtask.webservice.service;

import com.jx.gocomtask.webservice.DTO.TaskBody;
import com.jx.gocomtask.webservice.DTO.TotalLookDTO;
import com.jx.gocomtask.webservice.DTO.ViewTotalDTO;
import com.jx.gocomtask.webservice.DTO.query.MessageQuery;
import com.jx.gocomtask.webservice.DTO.query.PageDTO;
import com.jx.gocomtask.webservice.entity.ExtTaskMessage;
import com.jx.gocomtask.webservice.entity.ExtTaskMessageHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by LWD on 2017/8/7.
 */
public interface ExtTaskMessageService {
//    列表查看
    public PageDTO<ExtTaskMessage> findAll(MessageQuery query, Pageable pageable);

    public void  relevance(String super_uuid, String child_uuid, Integer type);

    public ExtTaskMessage findByUUID(String uuid,String userid);

    public ExtTaskMessage updateByUUID(String uuid, String userid, TaskBody taskBody);

//    多变关联模糊搜索
    public PageDTO<ExtTaskMessage> findAll(MessageQuery query);

    public PageDTO<TotalLookDTO> findLookAll(MessageQuery query);

    public Page<ExtTaskMessageHistory> findContentAll(MessageQuery query);

    public ViewTotalDTO count(MessageQuery messageQuery);

    /**
     * 添加上下文
     * @param messageQuery
     * @param content   内容
     * @param source    来源 0 系统 1 微信
     */
    public void addContent(MessageQuery messageQuery, String content, Integer source);

}
